/**
 * 
 */
package inet.app.model.cau;

import java.io.Serializable;



/**
 * @author Nguyen Le Chau
 *
 */
public class CauCell implements Serializable{
	private int valueposition1;//Gia tri tai diem Cau, vd tai 35 la 3
	private int valueposition2;//Gia tri tai diem Cau, vd tai 55 la 6
	public int position1;//in KetQua, vd 35
	public int position2;//in Ket Qua, vd 55
	
	int value;//in Bang Soi Cau
	
	public CauCell(int position1, int position2){
		this.position1 = position1;
		this.position2 = position2;		
	}
	
	public CauCell(int value, int position1, int position2){
		this.value = value;
		this.position1 = position1;
		this.position2 = position2;
	}
		
	public CauCell(int value){		
		this.value = value;
	}

	public int getValue() {
		return value;
	}
	
	public String getValueStr() {
		 String cauValStr = null;
		 if(value<10){
			 cauValStr = "0" + value;
		 }else
			 cauValStr = String.valueOf(value);
		 return cauValStr;
	}


	public void setValue(int value) {
		this.value = value;
	}
	public void setValueposition1(int valueposition1) {
		this.valueposition1 = valueposition1;
	}

	public int getValueposition1() {
		return valueposition1;
	}

	public void setValueposition2(int valueposition2) {
		this.valueposition2 = valueposition2;
	}

	public int getValueposition2() {
		return valueposition2;
	}
	
}
